Define predifined Generic Exceptions.
1494
27-Oct-2015
Updated on 18-Sep-2020
Tarun Kumar
27-Oct-2015Cocoa provides predefined number of generic exceptions. NSException.h file provides the generic exception names and all of these exception names are string constants.
Here is some of generic exception names:
- NSGenericException
- NSRangeException
- NSInvalidArgumentException
- NSObjectInaccessibleException
- NSObjectNotAvailableException
- NSDestinationInvalidException
- NSPortTimeoutException
- NSInvalidSendPortException
- NSInvalidReceivePortException and more…
Some subsystems of Cocoa defines their own exception names like:
- NSInconsistentArchiveException
- NSFileHandleOperationException